<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTeamsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('contestants', function (Blueprint $table) {
            $table->increments('id');
            $table -> string('realname')->nullable()->comment('真实姓名');
            $table -> string('school')->nullable()->comment('学校');
            $table -> integer('photo_id')->default(0)->comment('头像');
            $table -> integer('sex')->default(0)->comment('性别');
            $table -> integer('vote_num')->default(0)->comment('投票数量');
            $table -> integer('rank')->default(0)->comment('排名');
            $table -> integer('match')->default(0)->comment('比赛排名');
            $table -> softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
